<?php
/**
 * Created by PhpStorm
 * User: shen.zk
 * Date: 2023/8/27
 * Time: 11:36
 * Comment: ''
 */

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class BaseModel extends Model
{
    public $timestamps = false;

    /**
     * 定义返回时间
     * @param \DateTimeInterface $date
     * @return string
     * @author shen.zk
     * @date 2023-08-27 11:37
     */
    protected function serializeDate(\DateTimeInterface $date): string
    {
        return $date->format('Y-m-d H:i:s');
    }
}
